package com.forever7776.life.core.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 用户关注表
 * </p>
 *
 * @author kz
 * @since 2018-02-11
 */
public class Follow extends Model<Follow> {

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 被关注用户ID
     */
    @TableField("follow_user_id")
    private String followUserId;
    @TableField("insert_date")
    private Date insertDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFollowUserId() {
        return followUserId;
    }

    public void setFollowUserId(String followUserId) {
        this.followUserId = followUserId;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Follow{" +
        ", id=" + id +
        ", userId=" + userId +
        ", followUserId=" + followUserId +
        ", insertDate=" + insertDate +
        "}";
    }
}
